using System;
using System.Collections.Generic;
using ns26;
using ns27;

namespace Triton.Game.Mapping
{
	[Attribute38("FriendListNearbyPlayerFrame")]
	public class FriendListNearbyPlayerFrame : MonoBehaviour
	{
		public UberText m_PlayerNameText => method_3<UberText>("m_PlayerNameText");

		public FriendListChallengeButton m_ChallengeButton => method_3<FriendListChallengeButton>("m_ChallengeButton");

		public FriendListNearbyPlayerFrameBones m_Bones => method_3<FriendListNearbyPlayerFrameBones>("m_Bones");

		public FriendListNearbyPlayerFrameOffsets m_Offsets => method_3<FriendListNearbyPlayerFrameOffsets>("m_Offsets");

		public List<Component> m_rightComponentOrder => method_3<Class251<Component>>("m_rightComponentOrder")?.method_25();

		public BnetPlayer m_player => method_3<BnetPlayer>("m_player");

		public FriendListNearbyPlayerFrame(IntPtr address, string className)
			: base(address, className)
		{
		}

		public FriendListNearbyPlayerFrame(IntPtr address)
			: this(address, "FriendListNearbyPlayerFrame")
		{
		}

		public void Awake()
		{
			method_8("Awake");
		}

		public void OnEnable()
		{
			method_8("OnEnable");
		}

		public void OnChallengeButtonReleased(UIEvent e)
		{
			method_8("OnChallengeButtonReleased", e);
		}

		public void UpdateLayout()
		{
			method_8("UpdateLayout");
		}

		public void LayoutLeftText(UberText text, Transform bone, Vector3 offset, Component rightComponent)
		{
			method_8("LayoutLeftText", text, bone, offset, rightComponent);
		}

		public float ComputeLeftComponentWidth(Transform bone, Vector3 offset, Component rightComponent)
		{
			return method_11<float>("ComputeLeftComponentWidth", new object[3] { bone, offset, rightComponent });
		}

		public BnetPlayer GetNearbyPlayer()
		{
			return method_14<BnetPlayer>("GetNearbyPlayer", Array.Empty<object>());
		}

		public bool SetNearbyPlayer(BnetPlayer player, bool isFSG)
		{
			return method_11<bool>("SetNearbyPlayer", new object[2] { player, isFSG });
		}

		public void UpdateNearbyPlayer()
		{
			method_8("UpdateNearbyPlayer");
		}
	}
}
